package com.ln.adoms.action;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class AuthAction {

    @RequestMapping(value = "/login", method = RequestMethod.GET)
    public String login(HttpServletRequest request) {
//		String agent = request.getHeader("user-agent");
//		for (String mobile: Constants.MOBILE_AGENT){   
//	           if (agent.toUpperCase().contains(mobile)){   
//	        	   return "redirect:/gp/login";
//	          }   
//	     } 		
        return "redirect:/login.html";
    }

    @RequestMapping(value = "/home", method = RequestMethod.GET)
    public String home(HttpServletRequest request) {
//		String agent = request.getHeader("user-agent");
//		for (String mobile: Constants.MOBILE_AGENT){   
//	           if (agent.toUpperCase().contains(mobile)){   
//	        	   return "redirect:/gp/home";
//	          }   
//	     } 		
        return "redirect:/";
    }

}
